/*
 * Copyright (c) 2010-2013 Ruben Chakhmakhchyan. All rights reserved.
 * 
 * This file contains Original Code and/or Modifications of Original Code
 * as defined in and that are subject to the Eclipse Public License
 * Version 1.0 (the 'License'). You may not use this file except in
 * compliance with the License. Please obtain a copy of the License at
 * http://opensource.org/licenses/EPL-1.0 and read it before using this file.
 */

#pragma once

#include "commontypes.h"
#include "image_acquisition_model.h"
#include <windows.h>

bool resizeImageBilinear( byte_t** dest, uint_t destWidth, uint_t destHeight, byte_t* source );

bool resizeImageNearest( BITMAPINFOHEADER** dest, size_t& destSize, long viewLeft, long viewTop, long viewWidth, long viewHeight, double zoomFactor, const Pixels* pixels );

size_t resizeImageNearest( byte_t** dest, long viewLeft, long viewTop, long viewWidth, long viewHeight, double zoomFactor, const Pixels* pixels );

byte_t getBit( byte_t* bytes, int index, int invertBit );
